package licode.unisop.types.dp;

import org.springframework.util.Assert;

public class PageIndex {

    private final long start;

    public PageIndex(long start) {
        Assert.isTrue(start > 0, "索引必须大于0：" + start);
        this.start = start;
    }

    public long getStart() {
        return start;
    }

    @Override
    public String toString() {
        return start + "";
    }
}
